##文件的操作读写
import os

## 保存网络图片
## imgAddrs : 图片集合
## path: 图片路径
## sonPath: 图片子路径
def saveImage(imgAddrs,path,sonPath):
    if not os.path.exists(path +'\\' + sonPath):
      os.makedirs(path +'\\' + sonPath)
    fileName = path + '\\' + sonPath + '\\imgUrl.txt'
    with open(fileName,'wt') as f:
        for each in imgAddrs:
            ## 保存到本地格式为.txt
            f.write(each + '\n')
    return fileName